// 接口继承
export interface IhospitalItem extends Ihospital {
  bookingRule: IbookingRule
}

export interface Ihospital {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  address: string
  logoData: string
  intro: string
  route: string
  status: number
}

export interface IbookingRule {
  cycle: number
  releaseTime: string
  stopTime: string
  quitDay: number
  quitTime: string
  rule: string[]
}

export type IhospitalList = IhospitalItem[]
export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}

export interface Idict {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: {}
  parentId: number
  name: string
  value: string
  dictCode: null
  hasChildren: boolean
}

export type IdictArr = Idict[]
export type Status = 0 | 1
export interface Iparams {
  hoscode?: string
  hosname?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

export interface IhospitalShow {
  bookingRule?: IbookingRule
  hospital?: Ihospital
}

export interface Idep {
  depcode: string
  depname: string
  children: IdepList
  disabled?: boolean
}

export type IdepList = Idep[]

export interface IscheduleItem {
  workDate: string
  workDateMd: null
  dayOfWeek: string
  docCount: number
  reservedNumber: number
  availableNumber: number
  status: null
}

export type IscheduleList = IscheduleItem[]

export interface IhospitalScheduleRes {
  total: number
  baseMap: {
    hosname: string
  }
  bookingScheduleList: IscheduleList
}

export interface IsheduleTable {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    dayOfWeek: string
    depname: string
    hosname: string
  }
  hoscode: string
  depcode: string
  title: string
  docname: string
  skill: string
  workDate: string
  workTime: number
  reservedNumber: number
  availableNumber: number
  amount: number
  status: number
  hosScheduleId: string
}

export type IscheduleTableList = IsheduleTable[]
